import request from '@/utils/request'

export default {

  openLive(live) {
    return request({
      url: `/userservice/online-live/getAddress`,
      method: 'post',
      data: live
    })
  },
  getAll(){
    return request({
      url: `/userservice/online-live/getonline`,
      method: 'get',
    })
  },
  getById(id){
    return request({
      url: `/userservice/online-live/getById/${id}`,
      method: 'get',
    })
  },
  deleteById(id){
    return request({
      url: `/userservice/online-live/deleteById/${id}`,
      method: 'delete',
    })
  },
  changeOpen(id){
    return request({
      url: `/userservice/online-live/changeOnpen/${id}`,
      method: 'get',
    })
  }
}
